package com.fesnakj.todos.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.fesnakj.todos.jpa.DataBase;

@Configuration
public class AppConfiguration {
    
    @Bean
    public String annotationBasedBean() {
        return "This is simple annotation-based beans";
    }

    @Bean(initMethod="startDB", destroyMethod="closeDB")
    public DataBase dbServer(){
        return new DataBase();
    }
}
